package com.heima.wemedia.controller;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.entity.WmUser;

import com.heima.model.wmLoginDto.WmLoginDto;
import com.heima.wemedia.service.WmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 自媒体用户表(WmUser)表控制层
 *
 * @author makejava
 * @since 2022-04-09 19:13:55
 */
@RestController
@RequestMapping("login")
public class WmUserLoginController {

    /**
     * 服务对象
     */
    @Autowired
    WmUserService wmUserService;

    @PostMapping("/in")
    public ResponseResult login(@RequestBody WmLoginDto dto){

        return wmUserService.login(dto);
    }



}

